package com.sora.pipeline.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 操作日志实体类
 * 
 * @author system
 * @since 2025-01-20
 */
@Data
@TableName("operation_logs")
public class OperationLog {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    /**
     * 目标类型
     */
    private String targetType;
    
    /**
     * 目标ID
     */
    private Long targetId;
    
    /**
     * 操作动作
     */
    private String action;
    
    /**
     * 操作人ID
     */
    private Long actorId;
    
    /**
     * 操作详情
     */
    private String detail;
    
    /**
     * 创建时间
     */
    private LocalDateTime createdAt;
}

